﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： HotMobileRepository.cs
// 项目名称：斑马车务
// 创建时间：2019-10-11
// 负责人：lsc
// ===================================================================
using System;
using System.Text;
using System.Collections.Generic;
using YouWei.Infrastructure.Entity;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Repository
{
	/// <summary>
	///热门电话 仓储层
	/// </summary>	
	public class HotMobileRepository:BaseRepository<HotMobile>
	{		
    
        #region 构造

        public HotMobileRepository() : base(){}

        public HotMobileRepository(string connectionString) : base(connectionString){}

        public HotMobileRepository(DatabaseContext dbContext) : base(dbContext){}

        #endregion

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public Page<HotMobile> GetPages(int pageIndex, long pageSize)
        {
            string sql = "select * from HotMobile where IsActive=1";
            return Pages(pageIndex, pageSize, sql);
        }
    }
}